package com.ourteam.workspace.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:26 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class WorkspaceResourceBusinessPackageRelate implements java.io.Serializable {

  public WorkspaceResourceBusinessPackageRelate() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private long businessPcakageId;

  /** Attribute businessPcakageId Be Seted Falg */
  private boolean businessPcakageIdSetted = false;

  /** Attribute businessPcakageId is Null Falg */
  private boolean businessPcakageIdNull = false;

  /**
   * Get businessPcakageId
   *
   * @return long
   */
  public final long getBusinessPcakageId() {

    return businessPcakageId;
  }

  /**
   * Set businessPcakageId
   *
   * @param long
   */
  public final void setBusinessPcakageId(long businessPcakageId) {

    this.businessPcakageId = businessPcakageId;

    this.businessPcakageIdSetted = true;

    this.setBusinessPcakageIdNull(false);
  }

  /**
   * Get businessPcakageId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isBusinessPcakageIdSetted() {
    return this.businessPcakageIdSetted;
  }

  /** Set businessPcakageId Null */
  public final void setBusinessPcakageIdNull() {

    this.businessPcakageIdNull = true;
  }

  public final void setBusinessPcakageIdNull(boolean aNullFlag) {

    this.businessPcakageIdNull = aNullFlag;
  }

  public final boolean isBusinessPcakageIdNull() {

    return this.businessPcakageIdNull;
  }

  private String description;

  /** Attribute description Be Seted Falg */
  private boolean descriptionSetted = false;

  /** Attribute description is Null Falg */
  private boolean descriptionNull = false;

  /**
   * Get description
   *
   * @return String
   */
  public final String getDescription() {

    if (isDescriptionNull()) {
      return null;
    } else {
      return StringUtils.trim(description);
    }
  }

  /**
   * Set description
   *
   * @param String
   */
  public final void setDescription(String description) {

    this.description = StringUtils.trim(description);

    this.descriptionSetted = true;

    this.setDescriptionNull(this.description == null);
  }

  /**
   * Get description Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDescriptionSetted() {
    return this.descriptionSetted;
  }

  /** Set description Null */
  public final void setDescriptionNull() {

    this.descriptionNull = true;
  }

  public final void setDescriptionNull(boolean aNullFlag) {

    this.descriptionNull = aNullFlag;
  }

  public final boolean isDescriptionNull() {

    return this.descriptionNull;
  }

  private Integer status;

  /** Attribute status Be Seted Falg */
  private boolean statusSetted = false;

  /** Attribute status is Null Falg */
  private boolean statusNull = false;

  /**
   * Get status
   *
   * @return Integer
   */
  public final Integer getStatus() {

    return status;
  }

  /**
   * Set status
   *
   * @param Integer
   */
  public final void setStatus(Integer status) {

    this.status = status;

    this.statusSetted = true;

    this.setStatusNull(this.status == null);
  }

  /**
   * Get status Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStatusSetted() {
    return this.statusSetted;
  }

  /** Set status Null */
  public final void setStatusNull() {

    this.statusNull = true;
  }

  public final void setStatusNull(boolean aNullFlag) {

    this.statusNull = aNullFlag;
  }

  public final boolean isStatusNull() {

    return this.statusNull;
  }

  private long workspaceResourceId;

  /** Attribute workspaceResourceId Be Seted Falg */
  private boolean workspaceResourceIdSetted = false;

  /** Attribute workspaceResourceId is Null Falg */
  private boolean workspaceResourceIdNull = false;

  /**
   * Get workspaceResourceId
   *
   * @return long
   */
  public final long getWorkspaceResourceId() {

    return workspaceResourceId;
  }

  /**
   * Set workspaceResourceId
   *
   * @param long
   */
  public final void setWorkspaceResourceId(long workspaceResourceId) {

    this.workspaceResourceId = workspaceResourceId;

    this.workspaceResourceIdSetted = true;

    this.setWorkspaceResourceIdNull(false);
  }

  /**
   * Get workspaceResourceId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspaceResourceIdSetted() {
    return this.workspaceResourceIdSetted;
  }

  /** Set workspaceResourceId Null */
  public final void setWorkspaceResourceIdNull() {

    this.workspaceResourceIdNull = true;
  }

  public final void setWorkspaceResourceIdNull(boolean aNullFlag) {

    this.workspaceResourceIdNull = aNullFlag;
  }

  public final boolean isWorkspaceResourceIdNull() {

    return this.workspaceResourceIdNull;
  }

  private java.util.Date lastGenCodeTime;

  /** Attribute lastGenCodeTime Be Seted Falg */
  private boolean lastGenCodeTimeSetted = false;

  /** Attribute lastGenCodeTime is Null Falg */
  private boolean lastGenCodeTimeNull = false;

  /**
   * Get lastGenCodeTime
   *
   * @return java.util.Date
   */
  public final java.util.Date getLastGenCodeTime() {

    return lastGenCodeTime;
  }

  /**
   * Set lastGenCodeTime
   *
   * @param java.util.Date
   */
  public final void setLastGenCodeTime(java.util.Date lastGenCodeTime) {

    this.lastGenCodeTime = lastGenCodeTime;

    this.lastGenCodeTimeSetted = true;

    this.setLastGenCodeTimeNull(this.lastGenCodeTime == null);
  }

  /**
   * Get lastGenCodeTime Has Been Setted
   *
   * @return boolean
   */
  public final boolean isLastGenCodeTimeSetted() {
    return this.lastGenCodeTimeSetted;
  }

  /** Set lastGenCodeTime Null */
  public final void setLastGenCodeTimeNull() {

    this.lastGenCodeTimeNull = true;
  }

  public final void setLastGenCodeTimeNull(boolean aNullFlag) {

    this.lastGenCodeTimeNull = aNullFlag;
  }

  public final boolean isLastGenCodeTimeNull() {

    return this.lastGenCodeTimeNull;
  }

  private long submitterId;

  /** Attribute submitterId Be Seted Falg */
  private boolean submitterIdSetted = false;

  /** Attribute submitterId is Null Falg */
  private boolean submitterIdNull = false;

  /**
   * Get submitterId
   *
   * @return long
   */
  public final long getSubmitterId() {

    return submitterId;
  }

  /**
   * Set submitterId
   *
   * @param long
   */
  public final void setSubmitterId(long submitterId) {

    this.submitterId = submitterId;

    this.submitterIdSetted = true;

    this.setSubmitterIdNull(false);
  }

  /**
   * Get submitterId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isSubmitterIdSetted() {
    return this.submitterIdSetted;
  }

  /** Set submitterId Null */
  public final void setSubmitterIdNull() {

    this.submitterIdNull = true;
  }

  public final void setSubmitterIdNull(boolean aNullFlag) {

    this.submitterIdNull = aNullFlag;
  }

  public final boolean isSubmitterIdNull() {

    return this.submitterIdNull;
  }

  private String submitterName;

  /** Attribute submitterName Be Seted Falg */
  private boolean submitterNameSetted = false;

  /** Attribute submitterName is Null Falg */
  private boolean submitterNameNull = false;

  /**
   * Get submitterName
   *
   * @return String
   */
  public final String getSubmitterName() {

    if (isSubmitterNameNull()) {
      return null;
    } else {
      return StringUtils.trim(submitterName);
    }
  }

  /**
   * Set submitterName
   *
   * @param String
   */
  public final void setSubmitterName(String submitterName) {

    this.submitterName = StringUtils.trim(submitterName);

    this.submitterNameSetted = true;

    this.setSubmitterNameNull(this.submitterName == null);
  }

  /**
   * Get submitterName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isSubmitterNameSetted() {
    return this.submitterNameSetted;
  }

  /** Set submitterName Null */
  public final void setSubmitterNameNull() {

    this.submitterNameNull = true;
  }

  public final void setSubmitterNameNull(boolean aNullFlag) {

    this.submitterNameNull = aNullFlag;
  }

  public final boolean isSubmitterNameNull() {

    return this.submitterNameNull;
  }

  private String resourceName;

  /** Attribute resourceName Be Seted Falg */
  private boolean resourceNameSetted = false;

  /** Attribute resourceName is Null Falg */
  private boolean resourceNameNull = false;

  /**
   * Get resourceName
   *
   * @return String
   */
  public final String getResourceName() {

    if (isResourceNameNull()) {
      return null;
    } else {
      return StringUtils.trim(resourceName);
    }
  }

  /**
   * Set resourceName
   *
   * @param String
   */
  public final void setResourceName(String resourceName) {

    this.resourceName = StringUtils.trim(resourceName);

    this.resourceNameSetted = true;

    this.setResourceNameNull(this.resourceName == null);
  }

  /**
   * Get resourceName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isResourceNameSetted() {
    return this.resourceNameSetted;
  }

  /** Set resourceName Null */
  public final void setResourceNameNull() {

    this.resourceNameNull = true;
  }

  public final void setResourceNameNull(boolean aNullFlag) {

    this.resourceNameNull = aNullFlag;
  }

  public final boolean isResourceNameNull() {

    return this.resourceNameNull;
  }

  private String resourceType;

  /** Attribute resourceType Be Seted Falg */
  private boolean resourceTypeSetted = false;

  /** Attribute resourceType is Null Falg */
  private boolean resourceTypeNull = false;

  /**
   * Get resourceType
   *
   * @return String
   */
  public final String getResourceType() {

    if (isResourceTypeNull()) {
      return null;
    } else {
      return StringUtils.trim(resourceType);
    }
  }

  /**
   * Set resourceType
   *
   * @param String
   */
  public final void setResourceType(String resourceType) {

    this.resourceType = StringUtils.trim(resourceType);

    this.resourceTypeSetted = true;

    this.setResourceTypeNull(this.resourceType == null);
  }

  /**
   * Get resourceType Has Been Setted
   *
   * @return boolean
   */
  public final boolean isResourceTypeSetted() {
    return this.resourceTypeSetted;
  }

  /** Set resourceType Null */
  public final void setResourceTypeNull() {

    this.resourceTypeNull = true;
  }

  public final void setResourceTypeNull(boolean aNullFlag) {

    this.resourceTypeNull = aNullFlag;
  }

  public final boolean isResourceTypeNull() {

    return this.resourceTypeNull;
  }

  private String resourcePath;

  /** Attribute resourcePath Be Seted Falg */
  private boolean resourcePathSetted = false;

  /** Attribute resourcePath is Null Falg */
  private boolean resourcePathNull = false;

  /**
   * Get resourcePath
   *
   * @return String
   */
  public final String getResourcePath() {

    if (isResourcePathNull()) {
      return null;
    } else {
      return StringUtils.trim(resourcePath);
    }
  }

  /**
   * Set resourcePath
   *
   * @param String
   */
  public final void setResourcePath(String resourcePath) {

    this.resourcePath = StringUtils.trim(resourcePath);

    this.resourcePathSetted = true;

    this.setResourcePathNull(this.resourcePath == null);
  }

  /**
   * Get resourcePath Has Been Setted
   *
   * @return boolean
   */
  public final boolean isResourcePathSetted() {
    return this.resourcePathSetted;
  }

  /** Set resourcePath Null */
  public final void setResourcePathNull() {

    this.resourcePathNull = true;
  }

  public final void setResourcePathNull(boolean aNullFlag) {

    this.resourcePathNull = aNullFlag;
  }

  public final boolean isResourcePathNull() {

    return this.resourcePathNull;
  }

  private long workspaceId;

  /** Attribute workspaceId Be Seted Falg */
  private boolean workspaceIdSetted = false;

  /** Attribute workspaceId is Null Falg */
  private boolean workspaceIdNull = false;

  /**
   * Get workspaceId
   *
   * @return long
   */
  public final long getWorkspaceId() {

    return workspaceId;
  }

  /**
   * Set workspaceId
   *
   * @param long
   */
  public final void setWorkspaceId(long workspaceId) {

    this.workspaceId = workspaceId;

    this.workspaceIdSetted = true;

    this.setWorkspaceIdNull(false);
  }

  /**
   * Get workspaceId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspaceIdSetted() {
    return this.workspaceIdSetted;
  }

  /** Set workspaceId Null */
  public final void setWorkspaceIdNull() {

    this.workspaceIdNull = true;
  }

  public final void setWorkspaceIdNull(boolean aNullFlag) {

    this.workspaceIdNull = aNullFlag;
  }

  public final boolean isWorkspaceIdNull() {

    return this.workspaceIdNull;
  }

  private int resourceOrderIndex;

  /** Attribute resourceOrderIndex Be Seted Falg */
  private boolean resourceOrderIndexSetted = false;

  /** Attribute resourceOrderIndex is Null Falg */
  private boolean resourceOrderIndexNull = false;

  /**
   * Get resourceOrderIndex
   *
   * @return int
   */
  public final int getResourceOrderIndex() {

    return resourceOrderIndex;
  }

  /**
   * Set resourceOrderIndex
   *
   * @param int
   */
  public final void setResourceOrderIndex(int resourceOrderIndex) {

    this.resourceOrderIndex = resourceOrderIndex;

    this.resourceOrderIndexSetted = true;

    this.setResourceOrderIndexNull(false);
  }

  /**
   * Get resourceOrderIndex Has Been Setted
   *
   * @return boolean
   */
  public final boolean isResourceOrderIndexSetted() {
    return this.resourceOrderIndexSetted;
  }

  /** Set resourceOrderIndex Null */
  public final void setResourceOrderIndexNull() {

    this.resourceOrderIndexNull = true;
  }

  public final void setResourceOrderIndexNull(boolean aNullFlag) {

    this.resourceOrderIndexNull = aNullFlag;
  }

  public final boolean isResourceOrderIndexNull() {

    return this.resourceOrderIndexNull;
  }

  private String businessPackageName;

  /** Attribute businessPackageName Be Seted Falg */
  private boolean businessPackageNameSetted = false;

  /** Attribute businessPackageName is Null Falg */
  private boolean businessPackageNameNull = false;

  /**
   * Get businessPackageName
   *
   * @return String
   */
  public final String getBusinessPackageName() {

    if (isBusinessPackageNameNull()) {
      return null;
    } else {
      return StringUtils.trim(businessPackageName);
    }
  }

  /**
   * Set businessPackageName
   *
   * @param String
   */
  public final void setBusinessPackageName(String businessPackageName) {

    this.businessPackageName = StringUtils.trim(businessPackageName);

    this.businessPackageNameSetted = true;

    this.setBusinessPackageNameNull(this.businessPackageName == null);
  }

  /**
   * Get businessPackageName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isBusinessPackageNameSetted() {
    return this.businessPackageNameSetted;
  }

  /** Set businessPackageName Null */
  public final void setBusinessPackageNameNull() {

    this.businessPackageNameNull = true;
  }

  public final void setBusinessPackageNameNull(boolean aNullFlag) {

    this.businessPackageNameNull = aNullFlag;
  }

  public final boolean isBusinessPackageNameNull() {

    return this.businessPackageNameNull;
  }

  private String businessPackageType;

  /** Attribute businessPackageType Be Seted Falg */
  private boolean businessPackageTypeSetted = false;

  /** Attribute businessPackageType is Null Falg */
  private boolean businessPackageTypeNull = false;

  /**
   * Get businessPackageType
   *
   * @return String
   */
  public final String getBusinessPackageType() {

    if (isBusinessPackageTypeNull()) {
      return null;
    } else {
      return StringUtils.trim(businessPackageType);
    }
  }

  /**
   * Set businessPackageType
   *
   * @param String
   */
  public final void setBusinessPackageType(String businessPackageType) {

    this.businessPackageType = StringUtils.trim(businessPackageType);

    this.businessPackageTypeSetted = true;

    this.setBusinessPackageTypeNull(this.businessPackageType == null);
  }

  /**
   * Get businessPackageType Has Been Setted
   *
   * @return boolean
   */
  public final boolean isBusinessPackageTypeSetted() {
    return this.businessPackageTypeSetted;
  }

  /** Set businessPackageType Null */
  public final void setBusinessPackageTypeNull() {

    this.businessPackageTypeNull = true;
  }

  public final void setBusinessPackageTypeNull(boolean aNullFlag) {

    this.businessPackageTypeNull = aNullFlag;
  }

  public final boolean isBusinessPackageTypeNull() {

    return this.businessPackageTypeNull;
  }

  private long businessDomainId;

  /** Attribute businessDomainId Be Seted Falg */
  private boolean businessDomainIdSetted = false;

  /** Attribute businessDomainId is Null Falg */
  private boolean businessDomainIdNull = false;

  /**
   * Get businessDomainId
   *
   * @return long
   */
  public final long getBusinessDomainId() {

    return businessDomainId;
  }

  /**
   * Set businessDomainId
   *
   * @param long
   */
  public final void setBusinessDomainId(long businessDomainId) {

    this.businessDomainId = businessDomainId;

    this.businessDomainIdSetted = true;

    this.setBusinessDomainIdNull(false);
  }

  /**
   * Get businessDomainId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isBusinessDomainIdSetted() {
    return this.businessDomainIdSetted;
  }

  /** Set businessDomainId Null */
  public final void setBusinessDomainIdNull() {

    this.businessDomainIdNull = true;
  }

  public final void setBusinessDomainIdNull(boolean aNullFlag) {

    this.businessDomainIdNull = aNullFlag;
  }

  public final boolean isBusinessDomainIdNull() {

    return this.businessDomainIdNull;
  }

  private String businessDomainName;

  /** Attribute businessDomainName Be Seted Falg */
  private boolean businessDomainNameSetted = false;

  /** Attribute businessDomainName is Null Falg */
  private boolean businessDomainNameNull = false;

  /**
   * Get businessDomainName
   *
   * @return String
   */
  public final String getBusinessDomainName() {

    if (isBusinessDomainNameNull()) {
      return null;
    } else {
      return StringUtils.trim(businessDomainName);
    }
  }

  /**
   * Set businessDomainName
   *
   * @param String
   */
  public final void setBusinessDomainName(String businessDomainName) {

    this.businessDomainName = StringUtils.trim(businessDomainName);

    this.businessDomainNameSetted = true;

    this.setBusinessDomainNameNull(this.businessDomainName == null);
  }

  /**
   * Get businessDomainName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isBusinessDomainNameSetted() {
    return this.businessDomainNameSetted;
  }

  /** Set businessDomainName Null */
  public final void setBusinessDomainNameNull() {

    this.businessDomainNameNull = true;
  }

  public final void setBusinessDomainNameNull(boolean aNullFlag) {

    this.businessDomainNameNull = aNullFlag;
  }

  public final boolean isBusinessDomainNameNull() {

    return this.businessDomainNameNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof WorkspaceResourceBusinessPackageRelate) == false) {
      return false;
    }
    WorkspaceResourceBusinessPackageRelate other = (WorkspaceResourceBusinessPackageRelate) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("businessPcakageId=");
    buffer.append(this.businessPcakageId);

    buffer.append("description=");
    buffer.append(this.description);

    buffer.append("status=");
    buffer.append(this.status);

    buffer.append("workspaceResourceId=");
    buffer.append(this.workspaceResourceId);

    buffer.append("businessPackageName=");
    buffer.append(this.businessPackageName);

    buffer.append("businessDomainName=");
    buffer.append(this.businessDomainName);

    buffer.append("businessDomainId=");
    buffer.append(this.businessDomainId);

    buffer.append("businessPackageType=");
    buffer.append(this.businessPackageType);

    buffer.append("resourceName=");
    buffer.append(this.resourceName);

    buffer.append("resourceType=");
    buffer.append(this.resourceType);

    buffer.append("resourcePath=");
    buffer.append(this.resourcePath);

    buffer.append("workspaceId=");
    buffer.append(this.workspaceId);

    buffer.append("resourceOrderIndex=");
    buffer.append(this.resourceOrderIndex);

    buffer.append("lastGenCodeTime=");
    buffer.append(this.lastGenCodeTime);

    buffer.append("submitterId=");
    buffer.append(this.submitterId);

    buffer.append("submitterName=");
    buffer.append(this.submitterName);

    buffer.append("]");

    return buffer.toString();
  }
}
